package com.chb.app.controller;

import com.chb.app.service.BackService;
import com.hos.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: 陈海彬
 * @date: Created in 2023/12/29 10:52
 * @description:
 * @modified By:
 * @version:
 */
@RestController
@RequestMapping("/app/back")
@Api(tags = "订单支付相关控制层")
public class BackController {

    @Resource
    private BackService backService;

    @PostMapping("/{chId}")
    @ApiOperation("进行退款操作")
    public Result<String> back(@PathVariable String chId) {
        return this.backService.back(chId);
    }
}